package com.jlkf.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jlkf.dao.EditionMapper;
import com.jlkf.pojo.Edition;
import com.jlkf.service.EditionService;
import com.platform.server.response.response.pojo.ReturnData;

@Service
public class EditionServiceImpl implements EditionService{

	@Autowired
	private EditionMapper editionMapper;
	
	@Override
	public Object getNewsVersion() {
		try {
			Edition e=editionMapper.getEdition();
			return new ReturnData(e,200,"success");
		} catch (Exception e) {
			e.printStackTrace();
			return new ReturnData(500,"Wow, that's wrong");
		}
	}

	
}
